package com.shop.shopmall.service;

import com.shop.shopmall.pojo.Menu;
import com.shop.shopmall.pojo.Role;
import com.shop.shopmall.pojo.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author jamie
* @description 针对表【role】的数据库操作Service
* @createDate 2025-03-20 11:52:28
*/
public interface RoleService extends IService<Role> {

    /**
     * 获取所有角色
     * @return
     */
    List<Role> getAllRoles();

    /**
     * 根据条件获取角色
     * @param role
     * @param pageSize
     * @param pageNum
     * @return
     */
    List<Role> getRole(Role role, Integer pageSize, Integer pageNum);

    /**
     * 根据角色id获取菜单
     * @param id
     * @return
     */
    Integer[] getMenuByRoleId(int id);

}
